import request from '@/utils/request'
// -------- 押品清单 --------
let BASE_ADDRESS = '/tool/collateralType'

// 分页查询  /tool/collateralType/list
export const getCollateralTypeListApi = () =>{
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
    })
}

// 新增押品 /tool/collateralType/add
export const getCollateralTypeAddApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}

// 修改押品 /tool/collateralType/edit
export const getCollateralTypeEditApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}

// 删除押品 /tool/collateralType/remove/{id}
export const getCollateralTypeRemoveApi = (id) =>{
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: "delete",
    })
}